<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/pc/jsp/common/common.jsp"%>
<%@ page language="java" import="com.limao.DBDataClass.CrowdMAHomeClass"%>

<% 
  String userid=(String)CacheClass.isLogin(request,response);

 if(CacheClass.getIntValue(userid)==0)
 {
 	//out.println("<script language='JavaScript'>alert('您还没有登陆！');window.location.href='pc/login.jsp';</script>");
 	//out.println("<script language='JavaScript'>alert('您还没有登陆！');window.history.back(-1);</script>");  //后退但不刷新
 	out.println("<script language='JavaScript'>alert('您还没有登陆！');location.href=document.referrer;</script>"); //后退并刷新
 }  
 CrowdMAHomeClass obj= WebFunction.getMAHomeInfo(request,response);
 
 %>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <title>众筹白条</title>
	<script>
		$(window).load(function() {
			headertabcurrent=2;
			$("#header").load("pc/header.jsp"); 
			$("#footer").load("pc/footer.jsp");
			 
		});
	</script>    
    <script>
        if ($.browser.msie && $.browser.version <= 10.0)
        {
            layer.alert( "很抱歉，您的浏览器版本过低，网站功能支持较低，请您用IE11.0以上的浏览器或者其他浏览器浏览网页，推荐使用360（极速）浏览器;推荐使用谷歌浏览器");
            window.location.href=baseUrl+"pc/browserRecommend.jsp";
            $(".theme-popover-mask").fadeIn();
        }

    </script>
</head>
<body  ontouchstart="">
        <!--header-->
	<div  id="header"> </div>

	
    <div class="container jz">
       <div class="clearfix of">
           <div id="leftBanner" class="leftBanner fl bcf of">
                <span onclick="turnPage('pc/borrowMoney.jsp')" target="#rightBanner" id="ptbt" class="pr db leftBannerCurrent">去借钱<img src="pc/images/arrowLeft.png" class="dib pa"></span>
                <span onclick="turnPage('pc/payBackMoney.jsp')" target="#rightBanner" id="zcbt" class="pr db ">去还钱<img src="pc/images/arrowLeft.png" class="dib pa"></span>
           </div><!--leftBanner-->

           <div id="rightBanner" class="rightBanner fr" style='border:none;'>

			
           </div><!--rightBanner-->

       </div>
    </div><!--container-->
    
	<!--footer--><!--footer-->
    <div id="footer" class="footer w100 of"> </div>
<script>
    function turnPage(pageurl){
        var pageurl =pageurl;
        $("#rightBanner").load(pageurl,function () {
//            ptBaitiao-js
            $("#ptBtn").click(function () {
                $(this).prev().show();
            })


            $("#goBorrowMoney").click(function () {
                turnPage("pc/borrowMoney.jsp");
            })


            $("#goPayBackMoney").click(function () {
                turnPage("pc/payBackMoney.jsp");
            })
        });
    }

    $(function(){
        $("#ptbt").trigger('click');
        $('#leftBanner span').click(function(){//点击li加载界面
            var current = $(this);
            $('#leftBanner span').removeClass('leftBannerCurrent');
            current.addClass('leftBannerCurrent');
    });

    });



</script>
</body>
</html>